//---------------------------------------------------------------------------

#ifndef FmWalkKLSH
#define FmWalkKLSH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#ifndef WklsH
  #include "Wkls.h"
#endif
#define ObjBMP     5
#define XarBMP     6
#define SelObjBMP  7
#define SelXarBMP  8

class TKLS;
//---------------------------------------------------------------------------
//--------------------------------------------------------------------
class TWalkTreeKls : public TTreeView
{
  TKLS *pkls;
  public :
  __fastcall TWalkTreeKls(TComponent* Owner);
  void __fastcall TWalkTreeKls::FillTree(TKLS *pkls,TCod cod, TTypeIE typeIE,TTreeNode *PNode);
  void __fastcall TWalkTreeKls::TViewChange(TObject *Sender, TTreeNode *Node);
};

//--------------------------------------------------------------------
class TTreeTabSheet : public TTabSheet
{
  public :
  TKLS *pkls;
  TTypeIE typeIE;
  TWalkTreeKls *tview;
  __fastcall TTreeTabSheet(TComponent* Owner);
};


class TTreePageControl : public TPageControl
{
  public :
  TKLS *pkls;
  TTreeTabSheet *Page1,*Page2;

  __fastcall TTreePageControl(TComponent* Owner);
};

class TWalkKlsForm : public TForm
{
__published:	// IDE-managed Components
        TPanel *BottomPanel;
        TPanel *MainPanel;
        TPanel *SelectedPanel;
        TSplitter *Splitter1;
        TButton *YesButton;
        TButton *NoButton;
        TEdit *CodeEdit;
        TLabel *Label1;
        TButton *FilterButton;
        void __fastcall NoButtonClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
        TKLS *pkls;
        TTreePageControl *PageCtrl;
        __fastcall TWalkKlsForm(TComponent* Owner);
        void __fastcall TWalkKlsForm::Init(short typeSelection);
};
//---------------------------------------------------------------------------
extern PACKAGE TWalkKlsForm *WalkKlsForm;
//---------------------------------------------------------------------------
#endif

